﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;
using ZSZ.Model;

namespace ZSZ.IService
{
    public partial interface ICommunityService : IBaseService<Community>
    {
        List<CommunityDTO> GetPagedData(CommunitySearchOptions options, out long total, int pageIndex, int pageSize);

        CommunityDTO GetDTOById(long id);

        CommunityDTO[] GetByRegionId(long regionId);

        void Add(string name, long regionId, string location, string traffic, int? builtYear);
        void Update(long id, string name, long regionId, string location, string traffic, int? builtYear);
    }
}
